package com.hyt.it.ogt.ks.feign.hystrix;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import com.hyt.core.exception.NestedBusinessException;
import com.hyt.it.ogt.ks.feign.PjClient;

import lombok.extern.slf4j.Slf4j;


/**
 * 评卷接口
 * @author 刘恒活
 * @since 2020/9/27
 */
@Component
@Slf4j
public class PjClientHystrix implements PjClient {

	@Override
	public String getStudentItemScore(@RequestParam String projectId, @RequestParam String admissionNum) {
        log.error("#获取科目信息失败，进入熔断");
        throw new NestedBusinessException("获取科目信息失败");
	}
	
	@Override
	public String getStudentSubjectScore(String projectId, String admissionNum) {
		log.error("#获取主观题总分和状态失败，进入熔断");
		throw new NestedBusinessException("获取主观题总分和状态失败");
	}
}
